package order.service;

import order.service.impl.BuyImpl;
import order.service.impl.SellImpl;
import order.service.pojo.Broke;
import order.service.pojo.Stock;
//TODO 将一个请求封装成一个对象，从而使您可以用不同的请求对客户进行参数化
public class demo {
    public static void main(String[] args) {
        Stock stock = new Stock();
        BuyImpl buy = new BuyImpl(stock);
        SellImpl sell = new SellImpl(stock);
        Broke broke = new Broke();
        broke.takeList(buy);
        broke.takeList(sell);
        broke.placeList();
    }
}
